<?php
$this->pageTitle=Yii::app()->name . ' - Авторизация';
$this->breadcrumbs=array(
        'Авторизация',
);
?>

<div class="form">
    <?php $form=$this->beginWidget('CActiveForm', array(
            'id'=>'login-form',
            'enableAjaxValidation'=>false,
    )); ?>    <?php echo $form->errorSummary($model); ?>


    <div class="row">
        <?php echo $form->labelEx($model,'Логин'); ?>
        <?php echo $form->textField($model,'username'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model,'Пароль'); ?>
        <?php echo $form->passwordField($model,'password'); ?>

    </div>

    <div class="row rememberMe">
        <?php echo $form->checkBox($model,'rememberMe'); ?>
        <?php echo $form->label($model,'запомнить меня'); ?>
        <?php echo $form->error($model,'rememberMe'); ?>
    </div>

    <div class="row submit">
        <?php echo CHtml::submitButton('Воити'); ?>
    </div>

    <?php $this->endWidget(); ?>
</div><!-- form -->
